package com.leigang.java.code.mulithread;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author leig-a
 */
public class ThreadPoolExecutorDemo {
    public static void main(String[] args) {
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(5,
                                                        10,
                                                        10,
                                                        TimeUnit.MINUTES,
                                                        new LinkedBlockingQueue<Runnable>());
        System.out.println(threadPoolExecutor);
    }
}
